package com.xinbochuang.machine.admin.mapper.plan;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinbochuang.machine.admin.domain.plan.CheckPlan;
import com.xinbochuang.machine.admin.dto.PlanListDto;

/**
 * @author 黄晓鹏
 * @date 2020-09-10
 */
public interface CheckPlanMapper extends BaseMapper<CheckPlan> {

    List<PlanListDto> selectPlanList(
            @Param("planName") String planName,
            @Param("planId") String planId,
            @Param("pageNum") String pageNum,
            @Param("pageSize") String pageSize);

    Integer planTotalCount(@Param("planName") String planName, @Param("planId") String planId, @Param("pageNum") String pageNum, @Param("pageSize") String pageSize);

    PlanListDto selectCheckPercentage(String planId);

    /**
     * 盘点总进度
     *
     * @return 结果
     */
    Double selectPlanCount();
}
